<script setup lang="ts">
import { ref } from "vue";

const getMsg = (msg: String) => {
  return msg + "_" + new Date().getTime();
};

defineExpose({
  childMsg: () => "子组件方法初始化的值",
  getMsg,
});
</script>
<template></template>
